package com.cx.service.serviceimp;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.cx.mapper.TotalorderMapper;
import com.cx.entity.Totalorder;
import com.cx.service.TotalorderService;
@Service
public class TotalorderServiceImpl implements TotalorderService{

    @Resource
    private TotalorderMapper totalorderMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return totalorderMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Totalorder record) {
        return totalorderMapper.insert(record);
    }

    @Override
    public int insertOrUpdate(Totalorder record) {
        return totalorderMapper.insertOrUpdate(record);
    }

    @Override
    public int insertOrUpdateSelective(Totalorder record) {
        return totalorderMapper.insertOrUpdateSelective(record);
    }

    @Override
    public int insertSelective(Totalorder record) {
        return totalorderMapper.insertSelective(record);
    }

    @Override
    public Totalorder selectByPrimaryKey(Integer id) {
        return totalorderMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(Totalorder record) {
        return totalorderMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Totalorder record) {
        return totalorderMapper.updateByPrimaryKey(record);
    }

    @Override
    public int updateBatch(List<Totalorder> list) {
        return totalorderMapper.updateBatch(list);
    }

    @Override
    public int batchInsert(List<Totalorder> list) {
        return totalorderMapper.batchInsert(list);
    }

}
